<template>
    <div>
        <slot name="user" :user="user"></slot>
    </div>
</template>

<script>
export default {
    name: 'VueDemoIndex',

    data() {
        return {
            user:{
                name:"张三"
            }
        };
    },
};
</script>

<style scoped>

</style>